import React from 'react';
import { Component } from 'react';
require('./BannerItem.less');

export default class BannerItem extends Component {
    constructor() {
        super();
    }
    render() {
        const { banner } = this.props;
        return (
            <div className="bannerItem-container">
                <div className="head">{banner.src&&<img src={`client/images/${banner.src}`} className="head_img"/>}</div>
                <div className="name_text">{banner.name&&banner.name}</div>
            </div>
        )
    }
};